package cn.ilikes.apps.collect.pojos;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn;
import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn.Index;
import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn.Store;

@Entity
@Table(name="ilikes_collect_users",schema="ilikes_collect")
public class IlikesUsers {
		
	@Id
	@IndexColumn(index=Index.not_analyzed,name="id",store=Store.no)
	private String regName;
	
	@Column(name="users@passwd")
	private String regPasswd;
	
	@OneToMany(cascade=CascadeType.PERSIST,mappedBy="iikesUsers")
	private List<IlikesMyfolder> topIlikesMyfolders;

	public String getRegName() {
		return regName;
	}

	public void setRegName(String regName) {
		this.regName = regName;
	}

	public String getRegPasswd() {
		return regPasswd;
	}

	public void setRegPasswd(String regPasswd) {
		this.regPasswd = regPasswd;
	}

	public List<IlikesMyfolder> getTopIlikesMyfolders() {
		return topIlikesMyfolders;
	}

	public void setTopIlikesMyfolders(List<IlikesMyfolder> topIlikesMyfolders) {
		this.topIlikesMyfolders = topIlikesMyfolders;
	}
	
	

}
